#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main()
{
    int n = 0;
    float max = 0;
    float min = 1e9;
    float sum = 0;

    scanf("%d", &n);
    for (int i = 0; i < n; ++i)
    {
        float x = 0;
        scanf("%f", &x);
        if (x > max)
            max = x;
        if (x < min)
            min = x;
        sum += x;
    }
    float average = sum / n;
    printf("%.2f %.2f %.2f", max, min, average);

    return 0;
}